.model-status-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.status-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.model-status-indicator.small {
  gap: 2px;
}

.model-status-indicator.small .status-main {
  gap: 4px;
}

.status-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.status-text:hover {
  opacity: 0.8;
}

.response-time {
  font-size: 10px;
  color: #8c8c8c;
  margin-left: 4px;
}

.health-score {
  font-size: 10px;
  color: #52c41a;
  margin-left: 4px;
  font-weight: 600;
}

.model-status-indicator.small .status-text {
  font-size: 11px;
}

.status-label {
  white-space: nowrap;
}

.test-button {
  margin-left: 4px;
  border-radius: 4px;
}

.details-button {
  margin-left: 2px;
  color: #8c8c8c;
}

.details-button:hover {
  color: #1890ff;
  background: rgba(24, 144, 255, 0.1);
}

.model-status-indicator.small .test-button {
  margin-left: 2px;
}

/* 状态详情卡片 */
.status-details-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-details-card .ant-card-head {
  padding: 8px 12px;
  min-height: auto;
}

.status-details-card .ant-card-body {
  padding: 8px 12px;
}

.status-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.metric-value {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 150px;
}

.error-item {
  font-size: 10px;
}

.error-item .ant-tag {
  margin: 0;
  font-size: 10px;
  padding: 0 4px;
  line-height: 16px;
  border-radius: 2px;
}

/* 进度条样式 */
.metric-item .ant-progress {
  flex: 1;
  margin: 0 8px;
}

.metric-item .ant-progress .ant-progress-bg {
  height: 4px !important;
}

.metric-item .ant-statistic {
  margin: 0;
}

.metric-item .ant-statistic-content {
  font-size: 11px;
}

/* 动画效果 */
.status-text .anticon {
  transition: all 0.3s ease;
}

.status-text .anticon-loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 响应式调整 */
@media (max-width: 480px) {
  .model-status-indicator {
    gap: 4px;
  }
  
  .status-main {
    gap: 6px;
  }
  
  .status-text {
    font-size: 11px;
    gap: 3px;
  }
  
  .test-button {
    padding: 2px 6px;
    font-size: 11px;
  }
  
  .status-details-card {
    max-width: 280px;
  }
  
  .metric-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .metric-label {
    font-size: 10px;
  }
  
  .metric-value {
    font-size: 10px;
  }
  
  .response-time,
  .health-score {
    font-size: 9px;
  }
}